package com.avengers.common.bean.enums;

/**
 * @author zhangnan
 * @since 2022/8/18 11:24 上午
 **/
public enum RegistrarExternalType {
    SELF(1, "自有接口"),
    EXTERNAL(2, "外部接口");

    public int value;
    public String comment;

    RegistrarExternalType(int value, String comment) {
        this.value = value;
        this.comment = comment;
    }

    public static RegistrarExternalType of(int value) {
        for (RegistrarExternalType externalType : values()) {
            if (externalType.value == value) {
                return externalType;
            }
        }
        return null;
    }
}